<template>
	<view class="content">
		<uni-list v-for="(item,index) in list">
			<uni-badge :text="item.number" :absolute="absolute" :offset="offset">
			<uni-list-item 
			:title="item.name"
			:note="item.type"
			:thumb="item.icon"
			thumbSize="lg"
			 >
			
			</uni-list-item>
			</uni-badge>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
							"id": 1,
							"name": "文新树",
							"icon": "../../static/cat-1.png",
							"type": "信息工程学院",
							"number":7
							
						},{
							"id": 2,
							"name": "陈俊明",
							"icon": "../../static/cat-2.png",
							"type": "信息工程学院",
							"number":6
						},
						
						
				],
				offset:[20,55],
				absolute:'rightTop'
				
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style>
	.content {
		/* display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center; */
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
		position: relative;
	}
</style>
